-- GENERATED SPELL FOR [Corporal Keeshan] --


function spell0_349(pUnit, Event) --@Mocking Blow,n/a--
pUnit:FullCastSpellOnTarget(21008,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_349', 6290, 1)
end

function spell1_349(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_349', 8299, 1)
end

function Sorts_349(pUnit, Event)
local choix_sorts_349 = math.random(0, 1)
if choix_sorts_349 == 0 then
pUnit:RegisterEvent('spell0_349', 1, 1)
end
if choix_sorts_349 == 1 then
pUnit:RegisterEvent('spell1_349', 1, 1)
end
end

function mob349_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_349', math.random(1500, 3000), 1)
end

function mob349_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob349_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob349_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(349, 1, 'mob349_Action')
RegisterUnitEvent(349, 2, 'mob349_Leave')
RegisterUnitEvent(349, 3, 'mob349_Kill')
RegisterUnitEvent(349, 4, 'mob349_Die')
